package com.citic.netty.common.protocol;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

public abstract class Packet implements Serializable{

	private static final long serialVersionUID = 1L;
	
	/**
     * 协议版本
     */
	@JSONField(deserialize = false, serialize = false)
    private Byte version = 1;

	public Byte getVersion() {
		return version;
	}

	public void setVersion(Byte version) {
		this.version = version;
	}
	
    /**
     * 抽象的获取指令的方法
     */
	@JSONField(serialize = false)
    public abstract Byte getCommand();
}
